package com.itheima.mapper;


import com.itheima.pojo.Student;
import com.itheima.pojo.StudentInsert;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {


    List<Student> list(String name, Integer degree, Integer clazzId);

    void deleteById(Integer id);

    void add(Student student);

    Student getInfo(Integer id);

    void update(Student student);

    void weiji(Integer id, Short score);
    @MapKey("name")
    List<Map<String, Object>> countStuDegreeData();

    List<Map<String, Object>> countStuData();
}
